LATEX = latex -src-specials
ALL = test.dvi test.pdf
PIGGY = *.aux *.log

all: $(ALL)

%.dvi: %.tex
	$(LATEX) $*

%.pdf: %.tex
	pdflatex $*

clean:
	-rm *~

distclean: clean
	-rm $(ALL) $(PIGGY)
